home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus Extra 1996 #5
/
Amiga Plus Extra 1996 May.iso
/
editoren
/
sfx_v3.31
/
sfx-bin_00
/
_rexx
/
differenciate.rexx
next >
Wrap
OS/2 REXX Batch file
|
1996-08-01
|
744b
|
48 lines
/* SFX Differenciate */
OPTIONS RESULTS
ADDRESS REXX_SFX
GetActiveBuffer
buf1=RESULT
IF buf1<9999 THEN DO
GetSampleLength buf1
slen=RESULT
GetSampleRate buf1
srat=RESULT
NewBuffer slen srat 1
buf2=RESULT
SAY "generating ..."
oldval=0
DO pos=0 to slen
GetSampleValue buf1 0 pos
newval=RESULT
dif=oldval-newval
PutSampleValue buf2 0 pos dif
oldval=newval
END
SAY "ready"
END
ActivateSFX /* fertig */
EXIT
AppError:PROCEDURE
cmd=arg(1)
ret=arg(2)
SAY '
Application Error
';say
SAY 'Command 'cmd' failed with Returncode 'ret
SELECT
WHEN ret='1' THEN SAY ' => unknown command'
WHEN ret='2' THEN SAY ' => unknown parameter'
OTHERWISE SAY ' => unknown returncode'
END
SAY
RETURN